import 'dart:convert';

import 'package:largefriends/entity/json/json_parse_utils.dart';

class LfGestureEntity {
  LfGestureEntity({
    this.code,
    this.pic,
    this.horizontalPic,
    this.verticalPic,
  });

  factory LfGestureEntity.fromJson(Map<dynamic, dynamic> jsonRes) =>
      LfGestureEntity(
        code: jsonRes.asInt('code'),
        pic: jsonRes.asString('pic'),
        horizontalPic: jsonRes.asString('horizontalPic'),
        verticalPic: jsonRes.asString('verticalPic'),
      );

  final int? code;
  final String? pic;
  final String? horizontalPic;
  final String? verticalPic;
  @override
  String toString() {
    return jsonEncode(this);
  }

  Map<String, dynamic> toJson() => <String, dynamic>{
        'code': code,
        'pic': pic,
      };
}
